package com.sinoglobal.sinostore.activity;

import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;

import com.sinoglobal.sinostore.R;
import com.sinoglobal.sinostore.StateBaseActivity;
import com.sinoglobal.sinostore.fragment.FirstFragment;
/**
 * 
* @title: FirstActivity.java 
* @package com.chiliring.sinostore.activity 
* @description: TODO(商城首页) 
* @author LK
* @date 2015-1-12 下午4:54:26
 */
public class FirstActivity extends StateBaseActivity {
	private FragmentManager fragmentManager;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		isTemplate = false;
		super.onCreate(savedInstanceState);
		setContentView(R.layout.shop_first_activity);
		openChenJInShi();
		fragmentManager = getSupportFragmentManager();
		FragmentTransaction transaction = fragmentManager.beginTransaction();
		FirstFragment firstFragment = new FirstFragment();
		transaction.replace(R.id.first_layout, firstFragment);
		transaction.commit();
		
	}
	@Override
	protected void onDestroy() {
		if(GoodsListActivity.shopWareTypeVos!=null){
			GoodsListActivity.shopWareTypeVos.clear();
			GoodsListActivity.shopWareTypeVos=null;
		}
		super.onDestroy();
	}
	
}
